<div class="main-header">
    <div class="btn-list">
        <a ng-if="roleid!=6" href="javascript:void(0)" id="newItem" ng-click="edit()">
            <span class="glyphicon glyphicon-plus"></span>新增周期计划
        </a>
    </div>
</div>
<div class="main-con">
    <div class="row">
        <!--list -->
        <div class="col-xs-4">
            <search-box search-data="searchData" search-submit="getPlanList(true)"></search-box>
            <div class="result-bar">
                共<span class="mColor" ng-bind="count"></span>条记录
            </div>
            <div class="lft-wrap box-shadow" when-scrolled="getPlanList()">
                <ul class="data-list" repeat-list="getRgtModel()" active-id="{{activeId}}">
                    <li ng-repeat="item in planList track by $index" relativeId="{{item.Id}}"
                        ng-class="{active:$index==0}">
                        <div class="media-left">
                            <div class="icon-box" ng-class="{gray:!item.Icon}">
                                <img ng-if="item.Icon" class="media-object img-circle" alt="" width="60" height="60"
                                     ng-src="{{item.Icon}}">
                                <i ng-if="!item.Icon" class="menu-icon glyphicon glyphicon-time"></i>
                            </div>
                        </div>
                        <div class="media-body">
                            <div class="panel-info">
                                <dl>
                                    <dt>计划编号:</dt>
                                    <dd ng-bind="item.No"></dd>
                                </dl>
                                <dl>
                                    <dt>计划名称:</dt>
                                    <dd ng-bind="item.Name"></dd>
                                </dl>
                                <dl>
                                    <dt>处理人员:</dt>
                                    <dd ng-bind="item.PersonName"></dd>
                                </dl>
                                <dl>
                                    <dt>计划状态:</dt>
                                    <dd>
                                        <span class="statu-txt" ng-bind="PlanStatus|getEmunName:item.PlanStatus"></span>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        <div class="media-right">
                            <div ng-if="roleid!=6" class="btn-wrap">
                                <a ng-class="{disabled:item.PlanStatus==1||item.PlanStatus==2}"
                                   href="javascript:void(0)" title="编辑"
                                   ng-click="edit(item,$index);$event.stopPropagation();">
                                    <span class="glyphicon glyphicon-edit"></span></a>
                                <a href="javascript:void(0)" title="删除" ng-click="del(item,$index);$event.stopPropagation();">
                                    <span class="glyphicon glyphicon-trash"></span></a>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <!--内容块-->
        <div class="col-xs-8">
            <div class="rgt-wrap box-shadow" when-scrolled="getRecordList()">
                <div class="widget flat radius-bordered">
                    <tabset flat="true">
                        <tab heading="位置信息">
                            <div ng-show="activeId">
                                <wtmap-set-location option="setLocationOption"
                                                    position="planDetailModel.PlacesObj"></wtmap-set-location>
                            </div>
                        </tab>
                        <tab heading="详细信息">
                            <div ng-show="activeId">
                                <div class="row">
                                    <div class="panel-info report">
                                        <dl>
                                            <dt>计划编号:</dt>
                                            <dd ng-bind="planDetailModel.No"></dd>
                                        </dl>
                                        <dl>
                                            <dt>计划名称:</dt>
                                            <dd ng-bind="planDetailModel.Name"></dd>
                                        </dl>
                                        <dl>
                                            <dt>计划类型:</dt>
                                            <dd ng-bind="PlanTypes|getEmunName:planDetailModel.PlanType"></dd>
                                        </dl>
                                        <dl>
                                            <dt>计划状态:</dt>
                                            <dd ng-bind="PlanStatus|getEmunName:planDetailModel.PlanStatus"></dd>
                                        </dl>
                                        <dl>
                                            <dt>计划周期:</dt>
                                            <dd>
                                                <span ng-bind="planDetailModel.Interval"></span>天/次
                                            </dd>
                                        </dl>
                                        <dl>
                                            <dt>开始时间:</dt>
                                            <dd>
                                                <span ng-bind="planDetailModel.StartAt | date : 'yyyy-MM-dd'"></span>
                                            </dd>
                                        </dl>
                                        <dl>
                                            <dt>处理人员:</dt>
                                            <dd ng-bind="planDetailModel.PersonName"></dd>
                                        </dl>
                                        <dl>
                                            <dt>结束时间:</dt>
                                            <dd>
                                                <span ng-bind="planDetailModel.EndAt | date : 'yyyy-MM-dd'"></span>
                                            </dd>
                                        </dl>
                                        <dl>
                                            <dt>创建人:</dt>
                                            <dd ng-bind="planDetailModel.UserName"></dd>
                                        </dl>
                                        <dl>
                                            <dt>创建时间:</dt>
                                            <dd ng-bind="planDetailModel.CreateTime | date : 'yyyy-MM-dd HH:mm:ss'"></dd>
                                        </dl>

                                        <dl>
                                            <dt>备注:</dt>
                                            <dd ng-bind="planDetailModel.Note"></dd>
                                        </dl>
                                    </div>
                                </div>
                                <div class="thumbs" id="planThumbs">
                                    <a target-href="{{item.Url}}" style="background-image:url({{item.Url}})"
                                       thumbs-list="planThumbs"
                                       ng-repeat="item in planDetailModel.Imgs track by $index"></a>
                                </div>
                            </div>
                        </tab>
                        <tab heading="计划反馈">
                            <div ng-if="activeId" class="planTable">
                                <form name="queryPlan" ng-submit="queryPlanFeed()" novalidate>
                                    <table class="qry-tb">
                                        <tbody>
                                        <tr>
                                            <td>
                                                <div class="input-group date-box"
                                                     ng-click="openDate($event,'date.open')">
                                                    <input type="text" name="queryTime" class="form-control"
                                                           datepicker-options="dateOptions"
                                                           datepicker-popup="{{format}}" current-text="今天"
                                                           clear-text="清除" close-text="关闭" ng-model="queryParam.Time"
                                                           is-open="date.open" readonly="readonly" required/>
                                                    <span class="input-group-btn">
                                                            <button type="button" class="btn btn-default"><i
                                                                    class="glyphicon glyphicon-calendar"></i></button>
                                                        </span>
                                                </div>
                                            </td>
                                            <td>
                                                <button type="submit" class="btn btn-primary"
                                                        ng-disabled="queryPlan.$invalid">查询
                                                </button>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </form>
                               <!-- PlanTypes : {
                                "土建工程日常巡检" : 11,
                                "土建工程维护保养" : 12,
                                "附属设施日常巡检" : 13,
                                "附属设施维护保养" : 14,
                                "入廊管线巡检" : 15,
                                },-->
                                <table ng-if="planDetailModel.PlanType==13001" class="table table-bordered tb-plan">
                                    <thead>
                                    <tr>
                                        <th>项目</th>
                                        <th>巡检内容</th>
                                        <th>方法</th>
                                    </tr>
                                    </thead>
                                    <tbody class="data-daily">
                                        <tr ng-repeat="item in PlanTableData track by $index">
                                            <td>{{item.Name}}</td>
                                            <td style="padding: 0">
                                                <table class="subTable">
                                                    <tr ng-repeat="subItem in item.valueArr track by $index">
                                                        <td ng-if="subItem.ValueType==0">
                                                            <span>{{subItem.Value}}</span>&nbsp;&nbsp;
                                                            <span>{{subItem.ValueResult}}</span>
                                                        </td>
                                                        <td ng-if="subItem.ValueType==1">
                                                            <label>
                                                                <input ng-if="subItem.ValueResult==1" disabled type="checkbox" checked>
                                                                <input ng-else disabled type="checkbox">
                                                                <span class="text">{{subItem.Value}}</span>
                                                            </label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>{{item.Method}}</td>
                                        </tr>
                                        <!--<tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('防火封堵有无破损')">
                                                    <span class="text">防火封堵有无破损</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td rowspan="4">干粉灭火系统</td>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('灭火控制器工作状态')">
                                                    <span class="text">灭火控制器工作状态</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('灭火剂存储装置外观')">
                                                    <span class="text">灭火剂存储装置外观</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('紧急启/停按钮')">
                                                    <span class="text">紧急启/停按钮</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('警报器')">
                                                    <span class="text">警报器</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('喷嘴外观')">
                                                    <span class="text">喷嘴外观</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('防护区状况')">
                                                    <span class="text">防护区状况</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td rowspan="5">细水雾灭火系统</td>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('灭火控制器工作状态')">
                                                    <span class="text">灭火控制器工作状态</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('储气瓶和储水瓶（或储水罐）外观')">
                                                    <span class="text">储气瓶和储水瓶（或储水罐）外观</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('工作环境')">
                                                    <span class="text">工作环境</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('高压泵组')">
                                                    <span class="text">高压泵组</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('稳压泵外观及工作状态')">
                                                    <span class="text">稳压泵外观及工作状态</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('末端试水装置压力值(闭式系统)')">
                                                    <span class="text">末端试水装置压力值(闭式系统)</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('工作环境')">
                                                    <span class="text">工作环境</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('紧急启/停按钮')">
                                                    <span class="text">紧急启/停按钮</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('释放指示灯')">
                                                    <span class="text">释放指示灯</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('报警器')">
                                                    <span class="text">报警器</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('喷头')">
                                                    <span class="text">喷头</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('分区控制阀等组件外观')">
                                                    <span class="text">分区控制阀等组件外观</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('防护区状况')">
                                                    <span class="text">防护区状况</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td rowspan="2">防排烟系统</td>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('防火阀外观及工作状态')">
                                                    <span class="text">防火阀外观及工作状态</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('挡烟垂壁及控制装置外观及工作状况')">
                                                    <span class="text">挡烟垂壁及控制装置外观及工作状况</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td rowspan="4">灭火器</td>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('外观')">
                                                    <span class="text">外观</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('数量')">
                                                    <span class="text">数量</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('压力表')">
                                                    <span class="text">压力表</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('维修指示')">
                                                    <span class="text">维修指示</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('设置位置状况')">
                                                    <span class="text">设置位置状况</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td rowspan="2">消防专用电话</td>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('消防电话主机外观')">
                                                    <span class="text">消防电话主机外观</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('工作状况')">
                                                    <span class="text">工作状况</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('分机外观')">
                                                    <span class="text">分机外观</span>
                                                </label>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('电话插孔外观')">
                                                    <span class="text">电话插孔外观</span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>应急广播系统</td>
                                            <td>
                                                <label>
                                                    <input disabled type="checkbox" ng-checked="isChecked('扬声器外观')">
                                                    <span class="text">扬声器外观</span>
                                                </label>
                                            </td>
                                        </tr>-->
                                    </tbody>
                                </table>
                                <table ng-show="false" class="table table-bordered tb-plan">
                                    <thead>
                                    <tr>
                                        <th>项目</th>
                                        <th>巡检内容</th>
                                        <th>方法</th>
                                    </tr>
                                    </thead>
                                    <tbody class="data-daily">
                                    <tr>
                                        <td rowspan="3">风口、风管系统</td>
                                        <td>
                                            固定部件有无脱落，歪斜
                                        </td>
                                        <td rowspan="20">观察判断</td>
                                    </tr>
                                    <tr>
                                        <td>风口、风管外观有无破损、锈蚀</td>
                                    </tr>
                                    <tr>
                                        <td>风口处有无异物堵塞、通风是否通畅</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">风机系统</td>
                                        <td>风机运转声音有无异响</td>
                                    </tr>
                                    <tr>
                                        <td>风机运行有无异动</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="8">空调系统</td>
                                        <td>内、外机表面是否整洁</td>
                                    </tr>
                                    <tr>
                                        <td>固定件是否有松动移位</td>
                                    </tr>
                                    <tr>
                                        <td>制冷制热效果是否达到要求</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <table ng-show="false" class="table table-bordered tb-plan">
                                    <thead>
                                    <tr>
                                        <th>项目</th>
                                        <th>巡检内容</th>
                                        <th>方法</th>
                                    </tr>
                                    </thead>
                                    <tbody class="data-daily">
                                    <tr>
                                        <td rowspan="6">管道、阀门</td>
                                        <td>
                                            钢管、管件外表是否有锈蚀，评估是否需补漆
                                        </td>
                                        <td rowspan="14">观察判断</td>
                                    </tr>
                                    <tr>
                                        <td>钢管、管件是否有泄漏、裂缝及变形</td>
                                    </tr>
                                    <tr>
                                        <td>防腐层是否有损坏</td>
                                    </tr>
                                    <tr>
                                        <td>管道接口静密封是否泄漏</td>
                                    </tr>
                                    <tr>
                                        <td>查看支、吊架是否有明显松动和损坏</td>
                                    </tr>
                                    <tr>
                                        <td>查看阀门处是否有垃圾及油污</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="4">水泵</td>
                                        <td>查看潜水泵潜水深度</td>
                                    </tr>
                                    <tr>
                                        <td>检查水泵负荷开关、控制箱外观是否破坏及异常</td>
                                    </tr>
                                    <tr>
                                        <td>查看连接软管是否松动或破损</td>
                                    </tr>
                                    <tr>
                                        <td>水泵运行时听有无异响，观察有无异常</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="4">水位仪</td>
                                        <td>外观检查是否损坏</td>
                                    </tr>
                                    <tr>
                                        <td>观察安装是否稳固</td>
                                    </tr>
                                    <tr>
                                        <td>信号反馈是否正常</td>
                                    </tr>
                                    <tr>
                                        <td>观察接线是否正常</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <table ng-show="false" class="table table-bordered tb-plan">
                                    <thead>
                                    <tr>
                                        <th>项目</th>
                                        <th>巡检内容</th>
                                        <th>方法</th>
                                    </tr>
                                    </thead>
                                    <tbody class="data-daily">
                                    <tr>
                                        <td rowspan="2">变压器</td>
                                        <td>
                                            温度是否在规定范围内
                                        </td>
                                        <td>观察变压器温度指示计值</td>
                                    </tr>
                                    <tr>
                                        <td>运行时有无振动、异响及气味</td>
                                        <td>观察判断</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">高压配电柜</td>
                                        <td>运行时有无异响及气味</td>
                                        <td>观察判断</td>
                                    </tr>
                                    <tr>
                                        <td>屏面指示灯、带电显示器及分、合闸指示器是否正常</td>
                                        <td>观察高压配电柜屏面指示灯的工作状态</td>
                                    </tr>
                                    <tr>
                                        <td>直流屏</td>
                                        <td>直流电源装置上的信号灯、报警装置是否正常</td>
                                        <td>观察各信号灯工作状态</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">低压配电柜</td>
                                        <td>运行时有无异响及气味</td>
                                        <td>观察判断</td>
                                    </tr>
                                    <tr>
                                        <td>运行时三相负荷是否平衡、三相电压是否相同</td>
                                        <td>观察柜面电流表、电压表值，并做好记录</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">电容补偿柜</td>
                                        <td>运行时有无异响及气味</td>
                                        <td>观察判断</td>
                                    </tr>
                                    <tr>
                                        <td>三相电流是否平衡，功率因素表读数是否在允许值内</td>
                                        <td>观察柜面电流表、功率因素表值，并做好记录</td>
                                    </tr>
                                    <tr>
                                        <td>供电线缆和桥架</td>
                                        <td>桥架有无脱落，外露电缆的外皮是否完整，支撑是否牢固</td>
                                        <td>观察判断</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <table ng-show="false" class="table table-bordered tb-plan">
                                    <thead>
                                    <tr>
                                        <th>项目</th>
                                        <th>巡检内容</th>
                                        <th>方法</th>
                                    </tr>
                                    </thead>
                                    <tbody class="data-daily">
                                    <tr>
                                        <td rowspan="2">正常照明灯具</td>
                                        <td>
                                            灯具防护罩有无破损，灯具固定是否牢固
                                        </td>
                                        <td rowspan="3">观察判断</td>
                                    </tr>
                                    <tr>
                                        <td>灯具运行状态是否正常</td>
                                    </tr>
                                    <tr>
                                        <td>应急照明灯具</td>
                                        <td>灯具防护罩有无破损，灯具固定是否牢固</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!--end-->
                                <!--消防系统维修保养内容、要求及方法-->
                                <table ng-if="planDetailModel.PlanType==14" class="table table-bordered tb-plan">
                                    <thead>
                                    <tr>
                                        <th>维修保养项目</th>
                                        <th>内容</th>
                                        <th>要求</th>
                                        <th>方法</th>
                                    </tr>
                                    </thead>
                                    <tbody class="data-daily">
                                    <tr>
                                        <td rowspan="5">细水雾消防泵</td>
                                        <td>外观检查</td>
                                        <td>清洁</td>
                                        <td>擦洗，除污</td>
                                    </tr>
                                    <tr>
                                        <td>泵中心轴</td>
                                        <td>轴转动灵活，无卡塞</td>
                                        <td>长期不用时，定期盘动</td>
                                    </tr>
                                    <tr>
                                        <td>主回路控制回路</td>
                                        <td>接线、联锁控制是否满足要求</td>
                                        <td>测试、检查、紧固</td>
                                    </tr>
                                    <tr>
                                        <td>水泵</td>
                                        <td>密封性检查</td>
                                        <td>检查或更换盘根填料</td>
                                    </tr>
                                    <tr>
                                        <td>机械</td>
                                        <td>润滑</td>
                                        <td>加0号黄油</td>
                                    </tr>
                                    <tr>
                                        <td>管道</td>
                                        <td>外观</td>
                                        <td>无锈蚀，掉漆</td>
                                        <td>补漏、除锈、刷漆</td>
                                    </tr>
                                    <tr>
                                        <td>阀门</td>
                                        <td>密封性、润滑检查</td>
                                        <td>密封性及润滑良好</td>
                                        <td>加或更换盘根、补漏、除锈、刷漆、润滑</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!--<div ng-if="roleid!=6" class="btn-bar align-center">
                                    <button type="button" class="btn btn-primary" ng-click="downloadModal()">下载表格
                                    </button>
                                </div>-->
                            </div>
                        </tab>
                    </tabset>
                </div>
            </div>
        </div>
    </div>
</div><!-- 编辑设施信息 -->
<div class="modal fade" id="downloadModal">
    <div class="modal-dialog">
        <form name="downloadForm" ng-submit="downloadFormSubmit()" novalidate>
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title">下载表格</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group ">
                        <div class="date-wrap">
                            <div class="date-box start-box"
                                 ng-class="{ 'has-error' : downloadForm.begindate.$dirty&&downloadForm.begindate.$invalid}">
                                <p class="input-group start-box" ng-click="openDate($event,'date.begindate')">
                                    <input type="text" name="begindate" class="form-control"
                                           datepicker-options="dateOptions" datepicker-popup="{{format}}"
                                           current-text="今天" clear-text="清除" close-text="关闭"
                                           ng-model="downloadModel.begindate" is-open="date.begindate"
                                           readonly="readonly" placeholder="开始日期" required/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default" ng-click="openStart($event)"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                </p>
                                <p ng-show="downloadForm.begindate.$dirty && downloadForm.begindate.$error.required"
                                   class="help-block">开始日期不能为空</p>
                            </div>
                            <span class="date-txt">至</span>
                            <div class="date-box end-box"
                                 ng-class="{ 'has-error' : downloadForm.enddate.$dirty&&downloadForm.enddate.$invalid}">
                                <p class="input-group start-box" ng-click="openDate($event,'date.enddate')">
                                    <input type="text" name="EndAt" class="form-control"
                                           datepicker-options="dateOptions" datepicker-popup="{{format}}"
                                           current-text="今天" clear-text="清除" close-text="关闭"
                                           ng-model="downloadModel.enddate" is-open="date.enddate" readonly="readonly"
                                           placeholder="结束日期" required/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                </p>
                                <p ng-show="downloadForm.enddate.$dirty && downloadForm.enddate.$error.required"
                                   class="help-block">结束日期不能为空</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" ng-disabled="downloadForm.$invalid">确定</button>
                    <button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="modal fade" id="editModal">
    <div class="modal-dialog">
        <form name="planForm" ng-submit="planFormSubmit()" novalidate>
            <div class="modal-content" ng-show="!isShowGetPosition">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title" ng-bind="editModalTitle"></h4>
                </div>
                <div class="modal-body">
                    <div class="form-group"
                         ng-class="{ 'has-error' : planForm.PlanType.$dirty&&planForm.PlanType.$invalid}">
                        <div class="input-icon icon-right">
                            <select name="PlanType" class="form-control" ng-model="planModel.PlanType"
                                    ng-options="value as key for (key ,value) in PlanTypes" required>
                                <option value="" disabled selected>请选择(计划类型)</option>
                            </select>
                            <p ng-show="planForm.PlanType.$dirty && planForm.PlanType.$error.required"
                               class="help-block">计划类型是必需的，并且不能是空的</p>
                        </div>
                    </div>
                    <!--<div class="form-group" ng-class="{'has-error' : planForm.No.$dirty&&planForm.No.$invalid}">
                        <div class="input-icon icon-right">
                            <input type="text" name="No" class="form-control" ng-model="planModel.No" placeholder="计划编号" required>
                            <p ng-show="planForm.No.$dirty && planForm.No.$error.required" class="help-block">计划编号是必需的，并且不能是空的</p>
                        </div>
                    </div>-->
                    <div class="form-group" ng-class="{ 'has-error' : planForm.Name.$dirty&&planForm.Name.$invalid}">
                        <div class="input-icon icon-right">
                            <input type="text" name="Name" class="form-control" ng-model="planModel.Name"
                                   placeholder="计划名称" required>
                            <p ng-show="planForm.Name.$dirty && planForm.Name.$error.required" class="help-block">
                                计划名称是必需的，并且不能是空的</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="date-wrap">
                            <div class="date-box start-box"
                                 ng-class="{'has-error' : planForm.StartAt.$dirty&&planForm.StartAt.$invalid}">
                                <p class="input-group start-box" ng-click="openDate($event,'date.openStarted')">
                                    <input type="text" name="StartAt" ng-model="planModel.StartAt" class="form-control"
                                           datepicker-options="dateOptions" datepicker-popup="{{format}}"
                                           current-text="今天" clear-text="清除" close-text="关闭" is-open="date.openStarted"
                                           readonly="readonly" placeholder="开始日期" min-date="minDate" max-date="maxDate"
                                           required/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                </p>
                                <p ng-show="planForm.StartAt.$dirty && planForm.StartAt.$error.required"
                                   class="help-block">开始日期是必需的，并且不能是空的</p>
                            </div>
                            <span class="date-txt">至</span>
                            <div class="date-box end-box"
                                 ng-class="{ 'has-error' : planForm.EndAt.$dirty&&planForm.EndAt.$invalid}">
                                <p class="input-group end-box" ng-click="openDate($event,'date.openEnded')">
                                    <input type="text" name="EndAt" class="form-control"
                                           datepicker-options="dateOptions" datepicker-popup="{{format}}"
                                           current-text="今天" clear-text="清除" close-text="关闭" ng-model="planModel.EndAt"
                                           is-open="date.openEnded" readonly="readonly" datepicker-options="dateOptions"
                                           min-date="minDate" max-date="maxDate" placeholder="结束日期" required/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                </p>
                                <p ng-show="planForm.EndAt.$dirty && planForm.EndAt.$error.required" class="help-block">
                                    结束日期是必需的，并且不能是空的</p>
                            </div>
                        </div>
                    </div>
                    <div class="form-title">计划周期</div>
                    <div class="form-group"
                         ng-class="{ 'has-error' : planForm.Interval.$dirty&&planForm.Interval.$invalid}">
                        <div class="input-icon icon-right">
                            <input style="width: 200px;display: inline-block;" type="text" name="Name"
                                   class="form-control" ng-model="planModel.Interval" placeholder="频率" required>
                            <span>天/次</span>
                            <p ng-show="planForm.Interval.$dirty && planForm.Interval.$error.required"
                               class="help-block">计划名称是必需的，并且不能是空的</p>
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <div class="control-group">
                            <div class="radio" ng-repeat=" item in PlanSchedule">
                                <label title="{{item.description}}">
                                    <input name="Schedule" type="radio" value="{{item.Schedule}}" ng-model="planModel.Schedule" class="colored-blue">
                                    <span class="text">{{ item.name }}</span> </label>
                            </div>
                            <p ng-show="planForm.Schedule.$dirty && planForm.Schedule.$error.required" class="help-block">请选择一个 计划周期</p>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <div class="input-icon icon-right">
                            <select name="HandlerId" class="form-control" ng-model="planModel.Person"
                                    ng-options="item.Id as item.Name for item in groupUserList" required>
                                <option value="" disabled selected>请选择(处理人)</option>
                            </select>
                            <p ng-show="missionForm.HandlerId.$dirty && missionForm.HandlerId.$error.required"
                               class="help-block">处理人是必须的，并且不能是空的</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon icon-right" ng-click="openGetPositionPanel()">
                            <input type="text" ng-model="planModel.PlaceCodes" readonly="readonly"
                                   class="form-control map-input" placeholder="计划点位">
                            <i class="fa fa-map-marker circular"></i>
                        </div>

                    </div>
                    <div class="form-title">选填</div>
                    <div class="form-group">
                        <div class="textarea-box">
                            <textarea ng-model="planModel.Note" placeholder="备注"></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" ng-disabled="planForm.$invalid||!planModel.Schedule">
                        确定
                    </button>
                    <button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
                </div>
            </div>
        </form>
    </div>
</div><!-- 删除用户 -->
<div class="modal fade" id="delModal">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
                </button>
                <h4 class="modal-title">确定删除吗?</h4>
            </div>
            <div class="modal-body">
                <div class="panel-info">
                    <dl>
                        <dt>计划编号:</dt>
                        <dd ng-bind="delModel.No"></dd>
                    </dl>
                    <dl>
                        <dt>计划名称:</dt>
                        <dd ng-bind="delModel.Name"></dd>
                    </dl>
                    <dl>
                        <dt>处理人员:</dt>
                        <dd ng-bind="delModel.PersonName"></dd>
                    </dl>
                    <dl>
                        <dt>计划状态:</dt>
                        <dd ng-bind="PlanStatus|getEmunName:delModel.PlanStatus"></dd>
                    </dl>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" ng-click="delConfirm()">确定</button>
            </div>
        </div>
    </div>
</div><!--选择设施-->
<div class="modal fade" id="deviceSelectModal">

    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">

                <button type="button" class="btn btn-primary pull-right" ng-click="closeGetPositionPanel()">确 定</button>
                <h4 class="modal-title">选择巡查设施</h4>
            </div>
            <div class="modal-body">
                <wtmap-pointselect toolitems="pointselectOption.toolItems" pointlayers="pointselectOption.pointLayers"
                                   resultdatas="pointselectOption.selecedresults"
                                   initialayer="pointselectOption.initialayer"></wtmap-pointselect>
            </div>

        </div>
    </div>
</div>